package com.user.chris.provider;

import com.alibaba.dubbo.config.annotation.Service;
import com.dubbo.chris.userdubbo.api.UserTestService;
import com.user.chris.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class ProviderTest01 implements UserTestService {

    @Autowired
    private UserService userService;

    @Override
    public String test() {
        System.out.println("你是个勺");
        return "你是个勺";
    }

    @Override
    public Integer test01() {
        int a = 10/0;
        Integer add = userService.add();
        return add;
    }
}
